package com.yuju.rpt.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.persist.base.mapper.BaseMapper;
import com.yuju.rpt.dao.ICheckinCustomTypeDao;
import com.yuju.rpt.dao.entity.CheckinCustomType;
import com.yuju.rpt.dao.mapper.CheckinCustomTypeMapper;
import com.yuju.rpt.model.CheckinCustomTypeModel;

/**
 * 类名：CheckinCustomTypeDaoImpl  <br />
 *
 * 功能：
 *
 * @author : jiaokn <br />
 * @Date : 2018年2月5日 下午4:53:15  <br />
 * @version : 1.1 <br />
 */
@Repository
public class CheckinCustomTypeDaoImpl extends AbstractBaseDao<CheckinCustomTypeModel, CheckinCustomType, String> implements ICheckinCustomTypeDao {
	
	@Autowired
	private CheckinCustomTypeMapper checkinCustomTypeMapper;
	
	@Override
	public BaseMapper<CheckinCustomType, String> getMapper() {
		return checkinCustomTypeMapper;
	}

	@Override
	public List<CheckinCustomTypeModel> getCheckinStatByCustomType(CheckinCustomTypeModel checkinCustomTypeModel) {
		return convertP2M(checkinCustomTypeMapper.getCheckinStatByCustomType(getBeanMap(checkinCustomTypeModel)));
	}


}
